/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question2.composition.model;

/**
 *
 * @author griddy
 */
public class UtilityVehicle {
    
    private Vehicle v;

    public UtilityVehicle(String towBar, String diffLock, int odometerReading, String make, String model, int manufactureYear) {
        
        v.setOdometerReading(odometerReading);
        v.setMake(make);
        v.setModel(model);
        v.setManufactureYear(manufactureYear);
        this.towBar = towBar;
        this.diffLock = diffLock;
    }

    public UtilityVehicle(int odometerReading, String make, String model, int manufactureYear) {
               v.setOdometerReading(odometerReading);
        v.setMake(make);
        v.setModel(model);
        v.setManufactureYear(manufactureYear);
    }
    
    public String getMake() {
        return v.getMake();
    }

    public void setMake(String make) {
        v.setMake(make);
    }

    public int getManufactureYear() {
        return v.getManufactureYear();
    }

    public void setManufactureYear(int manufactureYear) {
        v.setManufactureYear(manufactureYear);
    }

    public String getModel() {
        return v.getModel();
    }

    public void setModel(String model) {
        v.setModel(model);
    }

    public int getOdometerReading() {
        return v.getOdometerReading();
    }

    public void setOdometerReading(int odometerReading) {
        v.setOdometerReading(odometerReading);
    }
    
    public void clearOdometerReading()
    {
        v.clearOdometerReading();
        
    }
    
    

    
    public UtilityVehicle()
    {
        super();
    }
    
    private String towBar;
    private String diffLock;
    
     public String getDiffLock() {
        return diffLock;
    }

    public void setDiffLock(String diffLock) {
        this.diffLock = diffLock;
    }

    public String getTowBar() {
        return towBar;
    }

    public void setTowBar(String towBar) {
        this.towBar = towBar;
    }
    
}
